package ink.xiaobaibai.multipleClick;

import java.lang.annotation.*;

/**
 * @author: xiaobaibai
 * 禁止多次点击注解
 * 根据userId做预防
 */

@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ForbidMultipleClick {

    boolean prefixUserId() default false;

    /**
     * 默认为UserId
     *
     * @return
     */
    String key() default "";

    String msg() default "冷却中";

    int durationSecondsTime() default 5;

}
